<?php

/**
 * @author Invisible Man
 * @copyright 2013
 */

function user_check($name, $pass, $min_user, $min_pass) {
    if (mb_strlen($name) < $min_user || mb_strlen($pass) < $min_pass) {
        return false;
    }
    return true;
}

function user_filter ($name) {
    if (ctype_alnum($name) == false) {
        return false;
    }
        return true;

}
?>